import { createRouter, createWebHistory } from 'vue-router'
import Home from "../views/Home.vue"
import About from "../views/About.vue"
import Axios from "../views/Axios.vue"

const routes = [
    {
        path: '/',
        name: 'Home',
        component: Home
    },
    {
        path: '/about',
        name: 'About',
        component: About
    },
    {
        path: '/axios',
        name: 'Axios',
        component: Axios
    },
    {
        path: '/i18n',
        name: 'I18n',
        component: () => import('../views/I18n.vue')
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router